//
//  HNSH_MyTeamModel.h
//  HNSH_SingleProject
//
//  Created by 李宇廷 on 2023/2/28.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface HNSH_InfoModel : NSObject
//用户编号
@property (nonatomic, assign) NSInteger uid;
//手机号
@property (nonatomic, copy) NSString *phone;
/* 昵称 */
@property (nonatomic, copy) NSString *nickname;
/* 头像 */
@property (nonatomic, copy) NSString *avatar_url;

/* 邀请码 */
@property (nonatomic, copy) NSString *invite_code;
//级别
@property (nonatomic, assign) NSInteger level;
/* 级别名称 */
@property (nonatomic, copy) NSString *level_name;
/* 级别图标 */
@property (nonatomic, copy) NSString *level_icon;
/* level_label_icon */
@property (nonatomic, copy) NSString *level_label_icon;

//团队人数
@property (nonatomic, assign) NSInteger team_count;
//团队有效人数（星级）
@property (nonatomic, assign) NSInteger team_active_count;
//团队实名人数
@property (nonatomic, copy) NSString *team_certify_count;
/* 直推人数 */
@property (nonatomic, copy) NSString *directly_count;
/* 直推实名人数 */
@property (nonatomic, copy) NSString *directly_certify_count;
/* 直推有效人数 */
@property (nonatomic, copy) NSString *directly_active_count;
//是否有效
@property (nonatomic, assign) BOOL active_able;
//活跃度
@property (nonatomic, assign) double active_value;
//实名状态 0:未实名 1:已实名
@property (nonatomic, assign) NSInteger certify_status;

/* 累计消费 */
@property (nonatomic, copy) NSString *consume_total;
/* 团队消费 */
@property (nonatomic, copy) NSString *team_consume_total;

/* 用户创建时间 */
@property (nonatomic, copy) NSString *create_time;
/* 最后登录时间 */
@property (nonatomic, copy) NSString *last_login_time;


@end

@interface HNSH_RequirementsModel : NSObject<NSCoding>
//标题
@property (nonatomic, copy) NSString *title;
//描述
@property (nonatomic, copy) NSString *desc;
//当前值
@property (nonatomic, assign) double now_val;
//需要值
@property (nonatomic, assign) double req_val;
//进度百分比
@property (nonatomic, assign) double percentage;


@end

@interface HNSH_LevelInfoModel : NSObject<NSCoding>

/* label_icon */
@property (nonatomic, copy) NSString *label_icon;
/* rights */
@property (nonatomic, copy) NSString *rights;
@property (nonatomic, assign) NSInteger level;
/* requirement_tip */
@property (nonatomic, copy) NSString *requirement_tip;
/* name */
@property (nonatomic, copy) NSString *name;
/* icon */
@property (nonatomic, copy) NSString *icon;
//升级条件
@property (nonatomic, strong) NSArray<HNSH_RequirementsModel *> *requirements;

@end

@interface HNSH_MyTeamModel : NSObject

@property (nonatomic, strong) HNSH_InfoModel *info;
@property (nonatomic, strong) HNSH_InfoModel *parent_info;
@property (nonatomic, strong) HNSH_LevelInfoModel *level_info;

//是否有邀请人
@property (nonatomic, assign) NSInteger has_parent;
@property (nonatomic, copy) NSString *huibao_balance;
@property (nonatomic, assign) BOOL parent_show;

@end

NS_ASSUME_NONNULL_END
